﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using DTO;
using DAO;

namespace BUS
{
    public class quanlymathang_BUS
    {
        public List<quanlymathang_DTO> LayDanhSachMH()
        {
            quanlymathang_DAO  dao = new quanlymathang_DAO ();
            return dao.LayDanhSachMH1();
        }
        public int ThemMatHang(quanlymathang_DTO mhDTO)
        {
            quanlymathang_DAO dao = new quanlymathang_DAO();
            return dao.ThemMatHang(mhDTO);
        }
        public int XoaMatHang(string mamh)
        {
            quanlymathang_DAO dao = new quanlymathang_DAO();
            return dao.XoaMatHang(mamh);
        }
        public int CapNhatMatHang(quanlymathang_DTO cnDTO)
        {
            quanlymathang_DAO dao = new quanlymathang_DAO();
            return dao.CapNhatMatHang(cnDTO);
        }
    }
}
